<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.js"></script>
</head>
<body>
    <div class="grid_view">
        <div class="item">
            <p class="title">你好</p>
            <img src="001" alt="">
        </div>
        <div class="item">
            <p class="title">八百</p>
            <img src="002" alt="">
        </div>
    </div>
    <script>
        // [{title:"你好",url:"001"},{title:"八百",url:"002"}]
        let items = $(".grid_view .item");
        let links = []
        items.each((index,value)=>{
            let title = $(value).find(".title").html();
            let  url = $(value).find("img").attr("src");
            links.push({
                title,
                url
            })
        })
        console.log(links)
    </script>
</body>
</html>